﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dashboard/Dashboard.Master" AutoEventWireup="true" CodeBehind="Posts.aspx.cs" Inherits="JamesThew.Dashboard.Posts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">

<div class="row">
    <form id="form1" runat="server">
        <div class="span8 main-area">
            <i class="icon-edit"></i><asp:Label ID="lblAddNewPost" CssClass="admin-header-text" runat="server" Text=" Add New"></asp:Label> <br />
            <asp:TextBox ID="txtPostTitle" runat="server" Width="98%">Enter Title Here</asp:TextBox> <br />
        
            <asp:TextBox ID="txtPostContent" runat="server" CssClass="mceEditor" TextMode="MultiLine" 
            Height="300px" Width="100%"></asp:TextBox>
            <asp:HiddenField ID="hiddenDateCreated" runat="server" />
            <div class="meta-box excerpt well well-small">
                <h5>Excerpt</h5>
                <asp:TextBox ID="txtPostExcerpt" runat="server" Width="98%" TextMode="MultiLine"></asp:TextBox>
                <div class="description">Excerpts are optional hand-crafted summaries of your content that can be used in your theme.</div>
            </div><!--.meta-box-->

            <div class="meta-box well well-small">
                <h5>Thumbnail URL</h5>
                <asp:TextBox ID="txtPostThumbnail" runat="server" Width="98%" Height="20px" TextMode="MultiLine"></asp:TextBox>
                <div class="description">Enter URL to show thumbnail.</div>
            </div><!--.meta-box-->

            <div class="meta-box well well-small">
                <h5>Views</h5>
                <asp:TextBox ID="txtPostViews" runat="server" Height="20px"></asp:TextBox>
                <div class="description">Num of views</div>
            </div><!--.meta-box-->
        
        </div><!--divspan8-->

        <div class="span4 sidebar-area">
            <div class="meta-box well well-small">
                <h5>Publish</h5>
                <asp:Button ID="btnSaveDraft" runat="server" CssClass="btn" Text="Save Draft" />
                <hr />
                <asp:Button ID="btnPublish" runat="server" CssClass="btn btn-primary" 
                    Text="Publish" onclick="btnPublish_Click" />
                <asp:Button ID="btnMoveToTrash" runat="server" CssClass="label label-important" Text="Move To Trash" />
            </div><!--.meta-box-->

            <div class="meta-box well well-small">
                <h5>Categories</h5>
                <hr />
                <asp:CheckBoxList ID="checkboxCategories" runat="server"></asp:CheckBoxList>
                <hr />
                <div class="description">
                    <i class="icon-plus-sign"></i> <a href="Categories.aspx"> Add new category</a>
                </div>
            </div><!--.meta-box-->

        </div><!--span4-->
    </form>
</div><!--row-->
<script type="text/javascript">
    CKEDITOR.replace('Main_txtPostContent',
{
    filebrowserBrowseUrl: '/ckfinder/ckfinder.html',
    filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?type=Images',
    filebrowserFlashBrowseUrl: '/ckfinder/ckfinder.html?type=Flash',
    filebrowserUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
    filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
    filebrowserFlashUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
});
</script>
</asp:Content>
